package com.example.demo.service;

import com.example.demo.dto.NpsQuestionDto;
import com.example.demo.repository.NpsQuestionRepository;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class NpsService {
    @Resource
    private NpsQuestionRepository npsQuestionRepository;

    public List<NpsQuestionDto> getQuestion(){
        List<NpsQuestionDto> allQuestions = npsQuestionRepository.getAllQuestions();
        System.out.println(allQuestions);
        return allQuestions;
    }
}
